|
1: |
|
app(app(plus,0),y) |
→ y |
2: |
|
app(app(plus,app(s,x)),y) |
→ app(s,app(app(plus,x),y)) |
3: |
|
app(app(times,0),y) |
→ 0 |
4: |
|
app(app(times,app(s,x)),y) |
→ app(app(plus,app(app(times,x),y)),y) |
5: |
|
app(inc,xs) |
→ app(app(map,app(plus,app(s,0))),xs) |
6: |
|
app(double,xs) |
→ app(app(map,app(times,app(s,app(s,0)))),xs) |
7: |
|
app(app(map,f),nil) |
→ nil |
8: |
|
app(app(map,f),app(app(cons,x),xs)) |
→ app(app(cons,app(f,x)),app(app(map,f),xs)) |
|
There are 20 dependency pairs:
|
9: |
|
APP(app(plus,app(s,x)),y) |
→ APP(s,app(app(plus,x),y)) |
10: |
|
APP(app(plus,app(s,x)),y) |
→ APP(app(plus,x),y) |
11: |
|
APP(app(plus,app(s,x)),y) |
→ APP(plus,x) |
12: |
|
APP(app(times,app(s,x)),y) |
→ APP(app(plus,app(app(times,x),y)),y) |
13: |
|
APP(app(times,app(s,x)),y) |
→ APP(plus,app(app(times,x),y)) |
14: |
|
APP(app(times,app(s,x)),y) |
→ APP(app(times,x),y) |
15: |
|
APP(app(times,app(s,x)),y) |
→ APP(times,x) |
16: |
|
APP(inc,xs) |
→ APP(app(map,app(plus,app(s,0))),xs) |
17: |
|
APP(inc,xs) |
→ APP(map,app(plus,app(s,0))) |
18: |
|
APP(inc,xs) |
→ APP(plus,app(s,0)) |
19: |
|
APP(inc,xs) |
→ APP(s,0) |
20: |
|
APP(double,xs) |
→ APP(app(map,app(times,app(s,app(s,0)))),xs) |
21: |
|
APP(double,xs) |
→ APP(map,app(times,app(s,app(s,0)))) |
22: |
|
APP(double,xs) |
→ APP(times,app(s,app(s,0))) |
23: |
|
APP(double,xs) |
→ APP(s,app(s,0)) |
24: |
|
APP(double,xs) |
→ APP(s,0) |
25: |
|
APP(app(map,f),app(app(cons,x),xs)) |
→ APP(app(cons,app(f,x)),app(app(map,f),xs)) |
26: |
|
APP(app(map,f),app(app(cons,x),xs)) |
→ APP(cons,app(f,x)) |
27: |
|
APP(app(map,f),app(app(cons,x),xs)) |
→ APP(f,x) |
28: |
|
APP(app(map,f),app(app(cons,x),xs)) |
→ APP(app(map,f),xs) |
|
The approximated dependency graph contains one SCC:
{10,12,14,16,20,25,27,28}.